from rich.console import Console

console = Console()
console.log("this is a log message")

def test_log():
    '''
    更美观的打印局部变量
    '''
    console.rule("1.打印局部变量")
    flag_a = True
    flag_b = False
    value = 56
    pi = 3.14
    dict_data = {
        "name": "lilisi",
        "age": 18
    }
    list_data = ["moives", "music"]
    console.log(log_locals=True)
    
test_log()